package haco.syncremotefile.utils;

/**
 * @author wangyuwei
 * @history 2021-06-10 15:41
 */
public class PathUtils {


    public static String get(String var1, String... var2) {
        String var3;
        if (var2.length == 0) {
            var3 = var1;
        } else {
            StringBuilder var4 = new StringBuilder();
            var4.append(var1);
            String[] var5 = var2;
            int var6 = var2.length;

            for(int var7 = 0; var7 < var6; ++var7) {
                String var8 = var5[var7];
                var8 = var8.replaceAll("//","/");
                if (var8.length() > 0) {
                    if (var4.length() > 0 ) {
                        String var9 = var4.substring(var4.length()-1);
                        if("/".equals(var9) || "\\".equals(var9) || "/".equals(var8) || "\\".equals(var8)){

                        }else{
                            String var10 = var8.substring(0,1);
                            if("/".equals(var10) || "\\".equals(var10)){

                            }else{
                                var4.append('/');
                            }
                        }
                    }
                    var4.append(var8);
                }
            }

            var3 = var4.toString();
        }

        return var3;
    }
}
